﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project_V1
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //FrmParamSet
            //显示登录窗体
            FrmAdmin objFrmAdmin = new FrmAdmin();
            DialogResult result = objFrmAdmin.ShowDialog();//模式窗体可以有返回值
            if (result == DialogResult.OK)
            {
                Application.Run(new FrmMain());

                //Application.Run(new FrmParamSet());
            }
            else
            {
                Application.Exit();
            }
            //Application.Run(new FrmMain());


        }

    }
}
